/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package framework.view;

import framework.model.Factory;
import javax.swing.JButton;
import javax.swing.JPanel;

/**
 *
 * @author ThanhNguyen
 */
public class OperationPanel extends JPanel {

    public OperationPanel(String depositText, String withdrawText) {
        setBounds(475, 50, 100, 210);
        setLayout(null);
        Factory factory = Factory.getInstance();
        
        JButton btnDeposit = new ActionButton(factory.createDepositController());
        btnDeposit.setText(depositText);
        btnDeposit.setBounds(4, 50, 90, 33);
        add(btnDeposit);

        JButton btnWithdraw = new ActionButton(factory.createWithdrawController());
        btnWithdraw.setText(withdrawText);
        btnWithdraw.setBounds(4, 100, 90, 33);
        add(btnWithdraw);
    }
}
